#include "mainwidget.h"
#include <QApplication>
#include <QTextCodec>
#if QT_VERSION < 0X050000
#include "syszuxim.h"
#include <QWSServer>//sssss
#endif
#include <qwindowdefs.h>
#include <database/database.h>

#include <QDebug>
#include "common/common.h"
#include "settings/IOSettings/iosettingwidget.h"



#if QT_VERSION < 0X050000
SyszuxIM* gInputMethod = NULL;
#endif

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
#if QT_VERSION < 0X050000
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
#endif
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
    DataBase::getDataBase();
    COM1;
    COM2;
    outMgr;
    inMgr;
    qDebug()<<"......";
    //MainWidget w;
    QFont font;
    font.setFamily("ubuntu");
    font.setBold(false);
    a.setFont(font);
    GetMainWidget()->show();

    return a.exec();
}
